package com.centit.jdghgl.po;

import java.util.Date;
import java.sql.Timestamp;
import javax.persistence.Column;


import javax.persistence.Id;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


/**
 * create by scaffold 2020-03-10 
 * @author codefan@sina.com
 
  T_JDGHGL【机队规划计划管理表】机队规划计划管理表   
*/
@Entity
@Table(name = "T_JDGHGL")
public class Jdghgl implements java.io.Serializable {
	private static final long serialVersionUID =  1L;



	/**
	 * REC_ID【主键】 主键 
	 */
	@Id
	@Column(name = "REC_ID")
	
	private String recId;

	/**
	 * GH_NAME【规划计划名称】 规划计划名称 
	 */
	@Column(name = "GH_NAME")
	@Length(min = 0, max = 500, message = "字段长度不能小于{min}大于{max}")
	private String  ghName;
	/**
	 * GH_EDITUSER【编辑人】 编辑人 
	 */
	@Column(name = "GH_EDITUSER")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  ghEdituser;
	/**
	 * GH_UNITCODE【编辑人处室编码】 编辑人处室编码 
	 */
	@Column(name = "GH_UNITCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  ghUnitcode;
	/**
	 * GH_CONTACT【联系电话】 联系电话 
	 */
	@Column(name = "GH_CONTACT")
	@Length(min = 0, max = 20, message = "字段长度不能小于{min}大于{max}")
	private String  ghContact;
	/**
	 * GH_TYPE【计划类型】 计划类型 
	 */
	@Column(name = "GH_TYPE")
	@Length(min = 0, max = 2, message = "字段长度不能小于{min}大于{max}")
	private String  ghType;
	/**
	 * GH_FBDATE【发布时间】 发布时间 
	 */
	@Column(name = "GH_FBDATE")
	private Date  ghFbdate;
	/**
	 * GH_GXDATE【更新时间】 更新时间 
	 */
	@Column(name = "GH_GXDATE")
	private String  ghGxdate;
	/**
	 * GH_DESC【概述】 概述 
	 */
	@Column(name = "GH_DESC")
	@Length(min = 0, max = 2000, message = "字段长度不能小于{min}大于{max}")
	private String  ghDesc;
	/**
	 * GH_MARK【备注】 备注 
	 */
	@Column(name = "GH_MARK")
	@Length(min = 0, max = 2000, message = "字段长度不能小于{min}大于{max}")
	private String  ghMark;
	/**
	 * GH_FJ【附件ID】 附件ID 
	 */
	@Column(name = "GH_FJ")
	@Length(min = 0, max = 2000, message = "字段长度不能小于{min}大于{max}")
	private String  ghFj;
	/**
	 * GH_STATUS【提交状态】 提交状态 0 暂存 1 提交 
	 */
	@Column(name = "GH_STATUS")
	@Length(min = 0, max = 2, message = "字段长度不能小于{min}大于{max}")
	private String  ghStatus;
	/**
	 * DATA_VALID 数据有效性 T有效 F失效 
	 */
	@Column(name = "DATA_VALID")
	@Length(min = 0, max = 1, message = "字段长度不能小于{min}大于{max}")
	private String  dataValid;
	/**
	 * INS_USERCODE 录入者用户编码 
	 */
	@Column(name = "INS_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  insUsercode;
	/**
	 * INS_TIME 录入时间 
	 */
	@Column(name = "INS_TIME")
	private Date  insTime;
	/**
	 * EDIT_USERCODE 编辑者用户编码 
	 */
	@Column(name = "EDIT_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  editUsercode;
	/**
	 * EDIT_TIME 编辑时间 
	 */
	@Column(name = "EDIT_TIME")
	private Date  editTime;
	/**
	 * DEL_USERCODE 删除人用户编码 
	 */
	@Column(name = "DEL_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  delUsercode;
	/**
	 * DEL_TIME 删除时间 
	 */
	@Column(name = "DEL_TIME")
	private Date  delTime;

	// Constructors
	/** default constructor */
	public Jdghgl() {
	}
	/** minimal constructor */
	public Jdghgl(
		String recId		
		) {
	
	
		this.recId = recId;		
			
	}

/** full constructor */
	public Jdghgl(
	 String recId		
	,String  ghName,String  ghEdituser,String  ghUnitcode,String  ghContact,String  ghType,Date  ghFbdate,String  ghGxdate,String  ghDesc,String  ghMark,String  ghFj,String  ghStatus,String  dataValid,String  insUsercode,Date  insTime,String  editUsercode,Date  editTime,String  delUsercode,Date  delTime) {
	
	
		this.recId = recId;		
	
		this.ghName= ghName;
		this.ghEdituser= ghEdituser;
		this.ghUnitcode= ghUnitcode;
		this.ghContact= ghContact;
		this.ghType= ghType;
		this.ghFbdate= ghFbdate;
		this.ghGxdate= ghGxdate;
		this.ghDesc= ghDesc;
		this.ghMark= ghMark;
		this.ghFj= ghFj;
		this.ghStatus= ghStatus;
		this.dataValid= dataValid;
		this.insUsercode= insUsercode;
		this.insTime= insTime;
		this.editUsercode= editUsercode;
		this.editTime= editTime;
		this.delUsercode= delUsercode;
		this.delTime= delTime;		
	}
	

  
	public String getRecId() {
		return this.recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	// Property accessors
  
	public String getGhName() {
		return this.ghName;
	}
	
	public void setGhName(String ghName) {
		this.ghName = ghName;
	}
  
	public String getGhEdituser() {
		return this.ghEdituser;
	}
	
	public void setGhEdituser(String ghEdituser) {
		this.ghEdituser = ghEdituser;
	}
  
	public String getGhUnitcode() {
		return this.ghUnitcode;
	}
	
	public void setGhUnitcode(String ghUnitcode) {
		this.ghUnitcode = ghUnitcode;
	}
  
	public String getGhContact() {
		return this.ghContact;
	}
	
	public void setGhContact(String ghContact) {
		this.ghContact = ghContact;
	}
  
	public String getGhType() {
		return this.ghType;
	}
	
	public void setGhType(String ghType) {
		this.ghType = ghType;
	}
  
	public Date getGhFbdate() {
		return this.ghFbdate;
	}
	
	public void setGhFbdate(Date ghFbdate) {
		this.ghFbdate = ghFbdate;
	}
  
	public String getGhGxdate() {
		return this.ghGxdate;
	}
	
	public void setGhGxdate(String ghGxdate) {
		this.ghGxdate = ghGxdate;
	}
  
	public String getGhDesc() {
		return this.ghDesc;
	}
	
	public void setGhDesc(String ghDesc) {
		this.ghDesc = ghDesc;
	}
  
	public String getGhMark() {
		return this.ghMark;
	}
	
	public void setGhMark(String ghMark) {
		this.ghMark = ghMark;
	}
  
	public String getGhFj() {
		return this.ghFj;
	}
	
	public void setGhFj(String ghFj) {
		this.ghFj = ghFj;
	}
  
	public String getGhStatus() {
		return this.ghStatus;
	}
	
	public void setGhStatus(String ghStatus) {
		this.ghStatus = ghStatus;
	}
  
	public String getDataValid() {
		return this.dataValid;
	}
	
	public void setDataValid(String dataValid) {
		this.dataValid = dataValid;
	}
  
	public String getInsUsercode() {
		return this.insUsercode;
	}
	
	public void setInsUsercode(String insUsercode) {
		this.insUsercode = insUsercode;
	}
  
	public Date getInsTime() {
		return this.insTime;
	}
	
	public void setInsTime(Date insTime) {
		this.insTime = insTime;
	}
  
	public String getEditUsercode() {
		return this.editUsercode;
	}
	
	public void setEditUsercode(String editUsercode) {
		this.editUsercode = editUsercode;
	}
  
	public Date getEditTime() {
		return this.editTime;
	}
	
	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}
  
	public String getDelUsercode() {
		return this.delUsercode;
	}
	
	public void setDelUsercode(String delUsercode) {
		this.delUsercode = delUsercode;
	}
  
	public Date getDelTime() {
		return this.delTime;
	}
	
	public void setDelTime(Date delTime) {
		this.delTime = delTime;
	}



	public Jdghgl copy(Jdghgl other){
  
		this.setRecId(other.getRecId());
  
		this.ghName= other.getGhName();  
		this.ghEdituser= other.getGhEdituser();  
		this.ghUnitcode= other.getGhUnitcode();  
		this.ghContact= other.getGhContact();  
		this.ghType= other.getGhType();  
		this.ghFbdate= other.getGhFbdate();  
		this.ghGxdate= other.getGhGxdate();  
		this.ghDesc= other.getGhDesc();  
		this.ghMark= other.getGhMark();  
		this.ghFj= other.getGhFj();  
		this.ghStatus= other.getGhStatus();  
		this.dataValid= other.getDataValid();  
		this.insUsercode= other.getInsUsercode();  
		this.insTime= other.getInsTime();  
		this.editUsercode= other.getEditUsercode();  
		this.editTime= other.getEditTime();  
		this.delUsercode= other.getDelUsercode();  
		this.delTime= other.getDelTime();

		return this;
	}
	
	public Jdghgl copyNotNullProperty(Jdghgl other){
  
	if( other.getRecId() != null){
	this.setRecId(other.getRecId());}
  
		if( other.getGhName() != null){
		this.ghName= other.getGhName();}  
		if( other.getGhEdituser() != null){
		this.ghEdituser= other.getGhEdituser();}  
		if( other.getGhUnitcode() != null){
		this.ghUnitcode= other.getGhUnitcode();}  
		if( other.getGhContact() != null){
		this.ghContact= other.getGhContact();}  
		if( other.getGhType() != null){
		this.ghType= other.getGhType();}  
		if( other.getGhFbdate() != null){
		this.ghFbdate= other.getGhFbdate();}  
		if( other.getGhGxdate() != null){
		this.ghGxdate= other.getGhGxdate();}  
		if( other.getGhDesc() != null){
		this.ghDesc= other.getGhDesc();}  
		if( other.getGhMark() != null){
		this.ghMark= other.getGhMark();}  
		if( other.getGhFj() != null){
		this.ghFj= other.getGhFj();}  
		if( other.getGhStatus() != null){
		this.ghStatus= other.getGhStatus();}  
		if( other.getDataValid() != null){
		this.dataValid= other.getDataValid();}  
		if( other.getInsUsercode() != null){
		this.insUsercode= other.getInsUsercode();}  
		if( other.getInsTime() != null){
		this.insTime= other.getInsTime();}  
		if( other.getEditUsercode() != null){
		this.editUsercode= other.getEditUsercode();}  
		if( other.getEditTime() != null){
		this.editTime= other.getEditTime();}  
		if( other.getDelUsercode() != null){
		this.delUsercode= other.getDelUsercode();}  
		if( other.getDelTime() != null){
		this.delTime= other.getDelTime();}		

		return this;
	}

	public Jdghgl clearProperties(){
  
		this.ghName= null;  
		this.ghEdituser= null;  
		this.ghUnitcode= null;  
		this.ghContact= null;  
		this.ghType= null;  
		this.ghFbdate= null;  
		this.ghGxdate= null;  
		this.ghDesc= null;  
		this.ghMark= null;  
		this.ghFj= null;  
		this.ghStatus= null;  
		this.dataValid= null;  
		this.insUsercode= null;  
		this.insTime= null;  
		this.editUsercode= null;  
		this.editTime= null;  
		this.delUsercode= null;  
		this.delTime= null;

		return this;
	}
}
